<?php
/*
Template Name: Sản phẩm 
*/
?>

<?php get_header(); ?>
<div class='container'>
	<div class="sidebar"><?php include (TEMPLATEPATH."/sidebar.php");?></div>
		<div class="content">
		
		<?php  $paged = intval(get_query_var('paged') ? get_query_var('paged') : 1);?>
		<?php $arg=array(
                    'post_type' => 'san-pham',
                    'orderby' => 'title',
                    'order' => 'ASC',
                    'posts_per_page' =>10,
                    'paged' =>$paged,
                    'post_parent' => $parent
                );?>
		<?php $loop = query_posts($arg); ?>
			<div id="content">
				 <div class="taxonomy-thumnail">
                <ul style="list-style:none">
                    <?php if (have_posts()) : ?>
                        <?php while (have_posts()) : the_post(); ?>
						<nav id="nav-single">
						
						
						</nav><!-- #nav-single -->
                        <?php
                            if($count%2!=0)
                                echo "<li>";
                            else
                                echo "<li style='margin-right: 0px'>";

                        ?>
                        <?php $count++;?>
                            <div class="post type-post entry">
                               
								
                            <div class="entry-summary">
                                <a href="<?php echo get_permalink()?>" title="<?php the_title();?>">
                                    <?php
                                    if ( has_post_thumbnail() ) {
                                        the_post_thumbnail( 'thumbnail' ,array(200,200));
                                    }
									
                                    ?>
                                </a>
								<div class="excerpt">
								 <h2 class="entry-title" style="font-size: 13px;margin-top: 15px;margin-bottom:5px">
                                    <a href="<?php echo get_permalink(); ?>" title="<?php the_title(); ?>" rel="bookmark">
                                        <?php the_title(); ?>
										
                                    </a>
                                </h2>
								<span style="font-size:12px"><?php the_excerpt()?> <a  style="font-size:13px"href="<?php echo get_permalink()?>">Chi tiết</a></span>
								</div>
                            </div><!-- .entry-summary -->
                        </div>
                        <?php echo "</li>"?>
                        <?php endwhile; ?>
                    <?php endif; ?>
					
				</div>
				
			</div>
			<?php wp_pagenavi(); ?>
		</div>
	</div>
<?php get_footer(); ?>